package com.ksm.version.service.impl;

import com.ksm.version.domain.SysServer;
import com.ksm.version.mapper.ServerMapper;
import com.ksm.version.service.ServerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ServerServiceImpl implements ServerService {

    @Autowired(required = false)
    private ServerMapper serverMapper;

    @Override
    public List<SysServer> findAll() {
        return serverMapper.findAll();
    }

    @Override
    public Integer addProjectServer(SysServer sysServer) {
        return serverMapper.addNewServer(sysServer);
    }

    @Override
    public Integer delServerOne(Integer id) {
        return serverMapper.delServerOne(id);
    }

    @Override
    public Integer updateServer(SysServer sysServer) {
        return serverMapper.updateServer(sysServer);
    }
}
